<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/stylelogin.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/gray.css" type="text/css" media="screen" />

<script type="text/javascript">
	function registerCustomerButton_onClick() {
		window.open("Register.jsp", "_self");
	}

	function loginCustomerButton_onClick() {
		if (document.customerImf.email.value == ""
				|| document.customerImf.pw.value == "") {
			alert("Please enter your email and last password!");
			return false;
		} else {
			document.customerImf.submit();
		}
	}
</script>

<title>Login Page</title>
</head>


<body>

<div class="header">
	
	<p class="tagline">Welcome to our restaurant</p>

</div>

<div id="content">
	
	<p>Log In Please</p>

	<div class="form">
		<form name="customerImf" action="LoginServlet?action=login" method="post">
		Name: <input type="text" class="formname" type="text" name="email"  size="20">

		Email: <input type="password" class="formname" name="pw" size="20">
		<input type="submit" class="sendform" value="Go" onclick="loginCustomerButton_onClick()"/><br>
		<p>New Customer</p>
		<input type="button" class="sendform" value="Register" onclick="registerCustomerButton_onClick()" />
		</form>
	</div>
</div>

	<p class="copy">All rights reserved by Taojie Gao & Kou Fei  </p>

<div style="clear:both;"></div>

</body>
</html>